#ifndef ANIMATION_H
#define ANIMATION_H
#include <SFML/System.hpp>
#include <Thor/Animation.hpp>
#include <SFML/Graphics.hpp>
#include "ResourceManager.h"


class Animation
{
    public:
        Animation(thor::FrameAnimation::Ptr ani, float duration, float x, float y);
        void play();
        void update(sf::RenderWindow* Window);
        bool done;

    private:
        thor::Animator animator;
        sf::Clock clock;
        float duration;
        sf::Sprite sprite;
};

#endif // ANIMATION_H
